﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimpleData.ObjectModel;
using DataAccess.SqlClient;
using SimpleData.Infrastructure.Plugins;
using SimpleData.Data;

namespace SimpleData
{
	public static class RuntimeExtensions
	{

		public static void InitStardandConfig( this Plug plugins )
		{
			// Banco de dados
			plugins.Connect<IObjectModelRepository>().OnNew<ObjectModelRepository>();
			plugins.Connect<IConnectionFactory>().Once<SqlConnectionFactory>();

			plugins.BuildContainer();
		}
	}
}
